﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.WorkFlow_Processs;
using LeadThing.AbpZeroTemplate.EntityFramework;

namespace LeadThing.AbpZeroTemplate.WorkFlow_Processs.EntityMapper.WorkFlow_Processs
{

    /// <summary>
    /// 流程节点配置表的数据配置文件
    /// </summary>
    public class WorkFlow_ProcessCfg : EntityTypeConfiguration<WorkFlow_Process>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public WorkFlow_ProcessCfg()
        {
            ToTable("WorkFlow_Process", AbpZeroTemplateConsts.SchemaName.Basic);


            // 步骤名称
            Property(a => a.ProcessName).HasMaxLength(50);
            // 步骤类型is_one发起is_step正常步骤is_end办结
            Property(a => a.ProcessType).HasMaxLength(50);
            // 转交下一步骤号
            Property(a => a.ProcessTo).HasMaxLength(50);
            // 经办人-存userid，逗号隔开
            Property(a => a.RangeUsers).HasMaxLength(1000);
            // 经办人-存username，逗号隔开
            Property(a => a.RangeNames).HasMaxLength(1000);
        }
    }
}